package com.anti_poverty_detection_system.springboot.service;

import com.anti_poverty_detection_system.springboot.model.Regions;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.data.domain.PageRequest;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author ZITONG BAI
 * @since 2024-06-17
 */
public interface IRegionsService extends IService<Regions> {

    Regions getRegionsByRegionNumber(String regionNumber);
    Regions getRegionsByRegionName(String regionName);
    Regions getRegionsByVillage(String village);
    boolean deleteRegionByRegionName(String regionName);

    Page<Regions> getRegions(Page<Regions> page);
    Page<Regions> getSearchRegions(Page<Regions> page,String keywords);

    void addRegionUpper(Regions regions);
}
